// function Person(name,age){
//     this.name = name;
//     this.age = age;
// }

// Person.prototype.run = function(){
//     console.log(this.name+'跑了');
// }

// Person.jump = Student.jump = function(val){
//     console.log(val+'跳了');
// }

// function Student(name,age,scroe){
//     Person.call(this,name,age)
//     this.scroe = scroe;
// }

// Student.prototype = new Person();
// Student.prototype.constructor = Student;


class Person {
    // 构造器
    constructor(name,age){
        this.name = name;
        this.age = age;
    }
    run(){
        console.log(this.name+'跑了');
    }
    static jump(val){
        console.log(val+'跳了');
    }
}
class Student extends Person{
    constructor(name,age,score){
        super(name,age)
        this.score = score;
    }
}
